<%- include('../../common/header.html',{css:'common'}) %>
<%- include('../../common/script-validation.html') %>
<script type="application/xhtml+xml" id="detail">
    <form  id="instore-form">
        <table class="table detail table-bordered table-none-padding" style=" font-size: 12px;">
            <thead>
            <tr class="form-group">
                <th>订单编码</th>
                <th>客户名称</th>
                <th>提单编码</th>
                <th>收货批号</th>
                <th>提单数量</th>
                <th>实提数量</th>
            </tr>
            </thead>
            <tbody>
            <$
            var tota= 0;
            ladingBillDetail.map(function(item){
            tota = floatTool.add(tota,item.number)
            $>
            <tr class="form-group">
                <td><$=item.paperAccount $></td>
                <td><$=item.paperAddress $></td>
                <td><$=item.ladingNo $></td>
                <td><$=item.billBatch $></td>
                <td><$=item.number $> 吨</td>
                <td class="td">
                    <input type="hidden" name="ids" value="<$=item.id $>"/>
                    <input step="0.001" style="width:60%;" type="text" data-max="<$=item.number$>" name="actuals" class="form-control border-none" value="<$=item.number $>"/> 吨</td>
            </tr>
            <$
            })
            $>
            <tr class="form-group">
                <td>合计：</td>
                <td></td>
                <td></td>
                <td></td>
                <td><$=tota $> 吨</td>
                <td class="td totla">
                    <$=tota $> 吨</td>
            </tr>

            </tbody>
        </table>
        <button class="btn btn-primary" type="submit">确定</button>
    </form>
</script>
<script id="lading-bill-actual-template" type="application/xhtml+xml">
    <form class='form-horizontal btn-update-actual-lading-bill'>
        <div class="form-group">
            <label class="col-sm-3 control-label">增加实提数量</label>
            <div class="col-sm-6">
                <input class="form-control" placeholder="增加实提数量" name="actual" type="number"
                       data-rule-required="true" max="3"/>
            </div>
            <div class="col-sm-3 error-container"></div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-3 col-sm-9">
                <button type="submit" data-loading-text="提交中..."
                        class="btn btn-danger btn-update-actual-lading-bill">提交
                </button>
            </div>
        </div>
    </form>
</script>
<script id="tr-cell" type="application/xhtml+xml">
    <tr>
        <td scope="row" class="a-actions"><$=index $> <i class="fa fa-angle-double-right" aria-hidden="true"></i>
            <div class="operate-area-ahead" tabIndex="' + index + '" style="">
                <$if(noCheck){$>
                <div class="btn-group" role="group">
                    <a href="./print/index.html?id=<$=id $>&type=<$=type $>&clienteleName=<$=clienteleName $>&storeName=<$=typeof storeName =='undefined'?'':storeName$>" data-id="10"
                       class="btn btn-xs btn-info opt-send " target="_blank">打印提货单</a>
                    </a>
                    <a href="../../log/log.html?id=<$=id $>&type=ladingBill" data-id="10"
                           class="btn btn-xs btn-info opt-send " >
                        日志
                    </a>
                    </a>
                    <$ if(actual>0){$>
                        <a href="javascript:void(0);" data-json='<$=json $>' class=" btn btn-xs btn-info btn-clear-zero">清零</a>
                    <$}$>
                    <$ if(actual==0){$>
                    <a href="javascript:void(0);" data-json='<$=json $>' class=" btn btn-xs btn-info btn-delete">删除</a>
                    <$}$>
                    <$ if(actual==0){$>
                        <a href="javascript:void(0);" data-json='<$=json $>' class=" btn btn-xs btn-info btn-update-batch ">更换批号</a>
                        <a href="javascript:void(0);" data-id="<$=id $>" data-actual="<$=actual$>" class=" btn btn-xs btn-info btn-insert">录入实提数</a>
                    <$}$>
                    <a target="_blank" href="./print/index.html?action=true&id=<$=id $>&type=<$=type $>&clienteleName=<$=clienteleName $>&action=change&storeName=<$=typeof storeName =='undefined'?'':storeName $>" class=" btn btn-xs btn-info ">提单变更</a>
                </div><$}$>
                <div class="btn-group" role="group" style="width: 81px;">
                    <$if(needCheck){$>
                    <a href="./check.html?id=<$=id $>&goodsId=<$=goodsId$>" class="btn btn-xs btn-primary interactive opt-check">
                        通过
                    </a>
                    <button type="button" class="btn btn-xs btn-danger interactive opt-refuse"
                            data-id="<$=id$>">拒绝
                    </button>
                   <$}else{$>
                    <a href="../../log/log.html?id=<$=id $>&type=ladingBill" data-id="10"
                       class="btn btn-xs btn-info opt-send " >
                        日志
                    </a>
                   <$}$>
                </div>
            </div>
        </td>
        <td class="more">
            <div class="more-detail">
                <div class="caret-top"></div>
                <table class="table table-vstriped" style="margin:0;">
                    <tr>
                        <td>车牌号/收货公司</td>
                        <td><$=carId$></td>
                        <td>司机姓名</td>
                        <td><$=''$></td>
                    </tr>
                    <tr>
                        <td>司机手机</td>
                        <td><$='' $></td>
                        <td>申请来源</td>
                        <td><$=juadge(applierType)$></td>
                    </tr>
                </table>
            </div>
            <a href="./detail.html?id=<$=id$>"><$=no$></a></td>
        <td><$=carId $></td>
        <td><$=goodsName$></td>
        <td><$-tfCheckStatus(checkStatus) $></td>
        <td><$=price $></td>
        <td><$=floatTool.multiply(numberThisTime,price) $></td>
        <td><$=tfLadingBillType(type) $></td>
        <td><$=formatDate(expireTime) $></td>
        <td><$=numberThisTime $></td>
        <td><$=actual $></td>
        <td><$=typeof storeName =='undefined'?'':storeName $></td>
        <td><$=clienteleName $></td>
        <td><$=typeof checker =='undefined'?'':checker $></td>
    </tr>
</script>
<title>用户管理-后台管理系统</title>
</head>
<body class="sub-body">
<%- include('../../common/top-nav.html') %>
<%- include('../../common/page-title.html',{navs:[
{label:'首页',url:'../../main.html'},
{label:'销售管理',url:'javascript:void(0)'},
{label:'销售发货',url:'javascript:void(0)'},
]}) %>
<div class="content">
    <div class="panel panel-default">
        <div class="panel-body">
                <div class="toolbar form-inline">
                    <div class="btn-group" role="group" aria-label="...">
                        <select name="goodsId" class="form-control data-select" style="display: inline-block;width: auto;margin-right: 5px;"
                                data-size="auto"
                                data-live-search="true"
                                title="选择商品"
                        >
                            <option value="">全部</option>
                        </select>
                    </div>
                    <select name="storeId" class="form-control " style="display: inline-block;width: auto;margin-right: 5px;"
                            data-size="auto"
                            title="是否入库"
                    >
                        <option value="">全部</option>
                        <option value="1">已入库</option>
                        <option value="0">未入库</option>
                    </select>
                </div>

        </div>
            <div class="modal fade order-check">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button
                                    type="button" class="close"
                                    data-dismiss="modal" aria-label="Close"><span
                                    aria-hidden="true">&times;</span></button>
                            <h5 class="modal-title">通过订单</h5>
                        </div>
                        <div class="modal-body">
                            <div class='form-horizontal'>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">发货地：</label>
                                    <div class="col-sm-6">
                                        <input type="text" class="form-control hp-refuse" name="deliverPlace">
                                    </div>
                                    <div class="col-sm-3 error-container"></div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">提单有效期：</label>
                                    <div class="col-sm-6">
                                        <input type="text" class="form-control input-date" name="expireTime">
                                    </div>
                                    <div class="col-sm-3 error-container"></div>
                                </div>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-primary btn-lg" data-ok="modal">通过</button>
                        </div>
                    </div>
                </div>
            </div>

            <div class="table-responsive" style="margin-top: 0px;">
                <div class="com-loading">
                    <img src="/admin/imgs/loading/loading.gif" alt="">
                </div>
                <table class="table table-bordered table-hover">
                    <thead>
                    <tr>
                        <th>#</th>
                        <th>提单号<i data-sort="no" class="pull-right fa fa-sort"></i></th>
                        <th>车号（收货公司）</th>
                        <th>产品名称</th>
                        <th>审核状态</th>
                        <th>单价</th>
                        <th>金额</th>
                        <th>提单类型<i data-sort="type" class="pull-right fa fa-sort"></i></th>
                        <th>提单有效期<i data-sort="expire_time" class="pull-right fa fa-sort"></i></th>
                        <th>提货数量<i data-sort="number_this_time" class="pull-right fa fa-sort"></i></th>
                        <th>实提数量</th>
                        <th>提货仓库</th>
                        <th>客户名称</th>
                        <th>操作员</th>
                    </tr>
                    </thead>
                    <tbody class="table-body">
                    </tbody>
                </table>
            </div>
            <div class="su-pager text-right">
            </div>
        </div>
    </div>
</div>
</body>
<!-- build:js ../../scripts/store/exprindex.ba.jsx.js  -->
<script type="text/javascript" src="./index.js"></script>
<!-- endbuild -->
</html>